<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-09-01 14:33:51
 * @LastEditors: voanit
 * @LastEditTime: 2022-09-01 14:40:05
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    /* 
    样式优先级
    !important
    style='color:red'
    id='a'
    class='b'
    div{}
    */
    .a div {
      color: red;
    }

    .c {
      color: green;
    }
  </style>
</head>

<body>
  <div class="a">a
    <div class="b">
      b
      <div class="c">
        c
      </div>
    </div>
  </div>
</body>

</html>